package cn.dao;

import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import cn.entity.Users;

public interface UsersDao {
    int deleteByPrimaryKey(Object id);

    int insert(Users record);

    Users selectByPrimaryKey(Object id);

    int updateByPrimaryKey(Users record);

    List<Users> find(Map<String,Object> params);
    
    int getCount(Map<String,Object> params);
    
    List<Users> login(@Param("username") String username,@Param("password") String password,@Param("role") Object role);
}